#include "series.h"

QString Series::getUid() const {
  return uid;
}

void Series::setUid(const QString & value) {
  uid = value;
}

QString Series::getDescr() const {
  return descr;
}

void Series::setDescr(const QString & value) {
  descr = value;
}

QTreeWidgetItem *Series::getTreeItem() const {
  QStringList data = {uid, descr};
  QTreeWidgetItem *item = new QTreeWidgetItem(data);
  foreach (ImageInfo i, image) {
    item->addChild(i.getTreeItem());
  }
  return item;
}

void Series::addImage(const ImageInfo & imageInfo) {
  image.push_back(imageInfo);
}

QString Series::getModality() const {
  return modality;
}

void Series::setModality(const QString & value) {
  modality = value;
}
